package com.mmall.service.Impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmall.common.JsonResponse;
import com.mmall.dao.UserMapper;
import com.mmall.pojo.User;
import com.mmall.service.IUserService;

@Service("userService")
public class UserServiceImpl implements IUserService{
	@Autowired
	private UserMapper userMapper;
	@Override
	public JsonResponse userRegister(User user) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public JsonResponse userList() {
		// TODO Auto-generated method stub
		List<User> userList = new ArrayList<User>();
		userList = userMapper.selectAllUser();
		return JsonResponse.successResponse(userList);
	}

}
